package com.tocea.formation.users;

import java.util.Set;

import com.tocea.formation.users.library.IRentBook;


public class UserImpl implements IUser
{
    
    
    private String id;
    private String password;
    private Set<IRentBook> rents;
    private String name;
    

    
    public UserImpl(String _name, String id, String password) {
    
        super();
        name = _name;
        this.id = id;
        this.password = password;
    }

    public String getPassword() {
    
        return password;
    }

    public String getId() {
    
        return id;
    }
    
    public String getpassword() {
    
        return password;
    }
    
    public void setId(String _newId) {
        id = _newId;
    
    }
    
    public void setPassword(String _newPassword) {
        password = _newPassword;
    
    }

    public Set<IRentBook> getAllRents() {
    
        return rents;
    }

    public void addRent(IRentBook _rentBook) {
    
        rents.add(_rentBook);
        
    }

    public String getName() {
    
        return name;
    }
    
}
